//
//  erWeiMaTableViewCell.m
//  A Learning Walk
//
//  Created by dllo on 16/6/17.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import "erWeiMaTableViewCell.h"

@implementation erWeiMaTableViewCell

-(void)dealloc{
    [_viewT release];
    [_labelN release];
    [_imageV release];
    
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
-(void)creatCell{
    self.labelN = [FengLabel LabelwithFrame:CGRectMake(0, 0, 0, 0) Color:[UIColor whiteColor] font:17];
    [self.contentView addSubview:self.labelN];
    
    self.viewT = [[UIView alloc] init];
    self.viewT.backgroundColor = [UIColor colorWithRed:225/256.0 green:225/256.0 blue:225/256.0 alpha:1];
    [self.contentView addSubview:self.viewT];
    
    self.imageV = [[UIImageView alloc] init];
    self.imageV.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.imageV];
    
    [self.imageV release];
    [self.labelN release];
    [self.viewT release];
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.labelN.frame = CGRectMake(20, 0, self.contentView.frame.size.width, self.contentView.frame.size.height-15);
    self.viewT.frame = CGRectMake(0, self.contentView.frame.size.height-15, self.contentView.frame.size.width, 15);
    self.imageV.frame = CGRectMake(self.contentView.frame.size.width-60, 10, self.contentView.frame.size.height/2, self.contentView.frame.size.height/2);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
